package cn.stylefeng.guns.modular.business.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author pzp
 * @since 2019-07-25
 */
@Data
@TableName("c_advice_feedback")
public class CAdviceFeedback implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "advice_id", type = IdType.AUTO)
    private Integer adviceId;

    /**
     * 邮箱
     */
    @TableField("email")
    private String email;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 图片地址
     */
    @TableField("picture")
    private String picture;

    /**
     * 是否删除
     */
    @TableField("delete_flag")
    private Integer deleteFlag;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 回复内容
     */
    @TableField("reply_content")
    private String replyContent;

    /**
     * 回复状态：0：未回复，1已回复
     */
    @TableField("reply_status")
    private Integer replyStatus;


    @Override
    public String toString() {
        return "CAdviceFeedback{" +
        "adviceId=" + adviceId +
        ", email=" + email +
        ", content=" + content +
        ", picture=" + picture +
        ", deleteFlag=" + deleteFlag +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", userId=" + userId +
        "}";
    }
}
